import request from '@/utils/request'
import { baseUrl } from './baseUrl'

//查询分页分润列表
export function getProfitSetUpLists(paramsData) {
          return request({
            url: baseUrl+ '/api/proportion/getProportions',
            method: 'post',
            params: paramsData
          })
        }
        // curPage分页页码
        // pageSize分页大小

//新增
export function addProfitSetUp(paramsData) {
    return request({
      url: baseUrl+ '/api/proportion/addProportion',
      method: 'post',
      params: paramsData
    })
  }
// storeId门店id
// storeDistribution门店分润
// headquartersDistribution总部分润
// staffDistribution员工分润
// storeAssessment门店考核
// headquartersAssessment总部考核
// staffAssessment员工考核
//storeName 门店名称


//修改
export function modifyProfitSetUp(paramsData) {
    return request({
      url: baseUrl+ '/api/proportion/updateProportionById',
      method: 'post',
      params: paramsData
    })
  }
// updateProportionById   修改
// proportionId表id
// storeId门店id
// storeDistribution门店分润
// headquartersDistribution总部分润
// staffDistribution员工分润
// storeAssessment门店考核
// headquartersAssessment总部考核
// staffAssessment员工考核
